package com.xgpro.common.results;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;

/**
 * @program: xg_dev
 * @description: 分页返回对象
 * @author: likai
 * @create: 2019-10-07 19:58
 **/

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class PageResult<T> {

    //总记录数
    private Long total;

    //当前页结果
    private List<T> rows;

    //当前页码
    private Integer pageNum;
}
